part of 'favorite_bloc.dart';

sealed class FavoriteState extends Equatable {
  const FavoriteState();
  
  @override
  List<Object> get props => [];
}

final class FavoriteInitial extends FavoriteState {}

final class FavoriteUninitialized extends FavoriteState {}

class FavoriteUpdate extends FavoriteState {
  final bool value;
  final bool isUpdating;

  const FavoriteUpdate({
    required this.value,
    this.isUpdating = false,
  });
  @override
  List<Object> get props => [value, isUpdating];
}

class FavoriteError extends FavoriteState {
  final Object error;

  const FavoriteError({
    required this.error,
  });

  @override
  List<Object> get props => [error];
}